Fix some flaky tests on the buildbots
authorAlex Crichton <alex@alexcrichton.com>
Tue, 19 Aug 2014 18:51:02 +0000 (11:51 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 19 Aug 2014 18:52:34 +0000 (11:52 -0700)
src/cargo/sources/git/utils.rs

index 61577b50c01f88e84fe5105648551536b0732782..b92517514c325fa77ba814c37558eed01e3606fd 100644 (file)
@@ -289,8 +289,11 @@ impl GitCheckout {
 
     fn update_submodules(&self) -> CargoResult<()> {
         git!(self.location, "submodule", "sync", "--quiet");
-        Ok(git!(self.location, "submodule", "update", "--init",
-                "--recursive", "--quiet"))
+        // Sadly older versions of git don't actually respect --quiet for *all*
+        // operations and still print some thing here and there.
+        git_output!(self.location, "submodule", "update", "--init",
+                    "--recursive", "--quiet");
+        Ok(())
     }
 }